import sqlalchemy
from sqlalchemy import create_engine

engine = sqlalchemy.create_engine('mysql://root:longbhu1214@123.56.253.79/testdb', echo=True)
connection = engine.connect()

query = sqlalchemy.text('select * from student')
result_set = connection.execute(query)

for row in result_set:
    print(row)

connection.close()
engine.dispose()